package com.ysx.wemedia.feign;

import com.ysx.core.feign.CoreFeign;
import com.ysx.wemedia.pojo.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value ="toutiao-wemedia",path = "/wmUser",contextId = "wmUser")
public interface WeMediaFeign extends CoreFeign<WmUser> {
   /* //新增一个自媒体账号
    @PostMapping
    Result<WmUser> save(@RequestBody WmUser wmUser);*/

    //根据用户id查询自媒体账号
    @GetMapping("/one/{userId}")
    WmUser selectByUserId(@PathVariable(value = "userId")Integer userId);





}
